import request from '@/utils/request'



export default {
  getCategory1: () => request(`/admin/product/getCategory1`),
  getCategory2: category1Id => request(`/admin/product/getCategory2/${category1Id}`),
  getCategory3: category2Id => request(`/admin/product/getCategory3/${category2Id}`),
  getAttrInfoList: (category1Id, category2Id, category3Id) => request(`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`),
  save:({categoryId,categoryLevel,id,attrName,attrValueList})=>request.post('/admin/product/saveAttrInfo',{categoryId,categoryLevel,id,attrName,attrValueList}),
  delAttr:attrId=>request.delete(`/admin/product/deleteAttr/${attrId}`)
}
